

use "${datadir}\HTB_main", replace

sum deposit if year<2015

/*
   Variable |       Obs        Mean    Std. Dev.       Min        Max
-------------+--------------------------------------------------------
     deposit |     26878    17322.72    20656.93       3250     324450

*/

sum deposit if year<2015 & advtype == 3

/*
    Variable |       Obs        Mean    Std. Dev.       Min        Max
-------------+--------------------------------------------------------
     deposit |     20340    14393.24    15153.91       3250     31075

*/
